import { createApp } from 'vue'
import App from './App'
import store from './store'
import router from './router'

import directive from './directive' // directive
import plugins from './plugins' // plugins
import '@/router/permission' // permission control
import components from './components' // global components
import utils from './utils' // global functions
import '@/assets/styles/index.scss' // global css

// 导入滑块验证组件
import Vcode from 'vue3-puzzle-vcode'

const app = createApp(App)
app.use(router)
app.use(store)
app.use(components) // 全局组件挂载
app.use(plugins)
app.use(utils) // 全局方法挂载
directive(app)

// 全局注册滑块验证组件
app.component('Vcode', Vcode)

app.mount('#app')
